<?php 

/**
*控制器父类  
*/
class Controller 
{	
	public $data;
	public function display($actionName=null) //display 显示; 陈列; 展开
	{	
		//var_dump($this->data);
		if ($this->data) {
			extract($this->data);//extract()把数组的键变为变量名,数组的值变为变量值
		}
		//var_dump(CONTROLLRE_NAME,ACTION_NAME);exit;
		if ($actionName) {
			$tpl ='./App/Home/View/'.CONTROLLRE_NAME.'/'.strtolower($actionName).'.html';
		}else{
			$tpl ='./App/Home/View/'.CONTROLLRE_NAME.'/'.strtolower(ACTION_NAME).'.html';
		}
		include $tpl;
	}

	public function assgin($key,$values)
	{
		$this->data[$key] = $values;
	}
}













 ?>